package com.atguigu.lease;

import com.atguigu.lease.common.minio.MinioConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * @Author zhaolingqiao
 * @CreateTime 2024/12/15
 */
//不需要minio，进行自动配置时排除minio
//方式1：@ComponentScan(excludeFilters =@ComponentScan.Filter(type= FilterType.ASSIGNABLE_TYPE,classes = MinioConfiguration.class))
//可用，但有更好的，按需导入配置类@ConditionalOnProperty(prefix = "minio",value = "endpoint")
//方式2：@SpringBootApplication(exclude = MinioConfiguration.class)，不是自动配置引入，无法排除
@SpringBootApplication
public class AppWebApplicaton {
    public static void main(String[] args) {
        SpringApplication.run(AppWebApplicaton.class,args);
    }
}
